package com.fingersoft.im.ui.home

import androidx.annotation.DrawableRes
import androidx.fragment.app.Fragment
import android.view.View
import android.widget.ImageView
import android.widget.RelativeLayout
import android.widget.TextView
import com.fingersoft.im.R
import com.fingersoft.im.view.DragPointView

class TabItemViewHolder(tabItem: View,val tabItemConfig: TabItem?) {

    var rootView: View = tabItem
    var imageView: ImageView? = tabItem.findViewById(R.id.tab_img_item)
    var textView: TextView? = tabItem.findViewById(R.id.tab_text_item)
    var dragPointView: DragPointView? = tabItem.findViewById(R.id.seal_item_num)
    var container: RelativeLayout = tabItem.findViewById(R.id.tab_item_container)
    var useTabBackcolor: Boolean = false
    var textColor: Int = 0
    var textColorPressed: Int = 0

    @JvmField
    @DrawableRes
    var res_tab_icon: Int = 0

    @DrawableRes
    var res_tab_icon_pressed: Int = 0

    @JvmField
    @DrawableRes
    var main_rightBtn_icon: Int = 0
    var title: String? = null
    var isStatusBarVisible: Boolean = true
    var isNavbarVisible: Boolean =true
    var isTitleBarVisible: Boolean =true
    var fragment: androidx.fragment.app.Fragment? = null
    var mark:String=""

    init {
        this.isTitleBarVisible = tabItemConfig?.isTitleBarVisible ?: false
    }
}
